﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="false"
    CodeFile="default.aspx.cs" Inherits="KPIReport.Web._Default" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="body">
    <link href="<%= ResolveUrl("~/styles/menuFixChrome.css") %>" rel="stylesheet" type="text/css/chrome" />
    <%--<script type="text/javascript">
        var ForgotPassword = '<%= Request.Params["forgotpassword"] %>';
        if (ForgotPassword.toString() != "") {
            OpenForma();

        }
        function OpenForma() {
            window.location = 'forms/administration/usermanagement/PopupPasswordform.aspx?menuforgotpass=true';
        }
    </script>--%>
    <script type="text/javascript">

        $(document).ready(function () {

            var userId = '<%= base.UserID %>';
            var passwordWelcome = "C0B137FE2D792459F26FF763CCE44574A5B5AB03";

            $.ajax({
                type: 'POST',
                url: '<%= ResolveUrl("~/ajaxhandler/administration/usermanagement/sUserhandler.ashx") %>?method=getafterlogin&id=' + userId,
                contentType: 'application/json',
                dataType: 'json',
                success: function (data) {

                    if (data.UserCode.toLowerCase() != 'admin') {

                        if (passwordWelcome == data.Password) {
                            //OpenForm();

                        }
                    }

                },
                error: function () {
                    alert('Error!');
                }
            });

        });

        function OpenForm() {

            var formUrl = '<%= ResolveUrl("~/forms/Administration/UserManagement/changeAfterLoginform.aspx") %>';

            $('#dialog').load(formUrl).dialog({
                closeOnEscape: false, autoOpen: false, modal: true, width: 450, height: 200, title: 'Change Password'
            });

            $("#dialog").dialog('open');

            $('#dialog').parent().find('a.ui-dialog-titlebar-close').remove();

        }
    
    </script>
    <div class="side-content fr">
        <div class="content-module">
            <div class="content-module-heading cf">
                <h3 class="fl">
                    Home</h3>
                <span class="fr expand-collapse-text">Click to collapse</span> <span class="fr expand-collapse-text initial-expand">
                    Click to expand</span>
            </div>
            <!-- end content-module-heading -->
            <div class="content-module-main">
            <div class="content-module-main">
                <div class="logo_index">
                    <img src="<%= ResolveUrl("~/images/logo_nestle_2.png") %>" width="200" height="100" alt="Nestle" />
                </div>
                <div class="intro">
                    <label style="font-family:Tahoma; font-size: 20px;">
                        KPI Report !</label>
                    <br />
                    <br />
                    <b>Job Description</b> merupakan dasar / sumber di mana karyawan melakukan tugas
                    utamanya, tujuan dari jabatannya, dan hasil yang harus dicapai dalam indikatornya.
                    <br />
                    <br />
                    <b>JobDesc</b> menjadi sangat penting juga dalam hal menentukan <b>Grade</b> suatu
                    jabatan.
                    <br />
                    <br />
                    Seiring perkembangan organisasi, Job Description dapat mengalami perubahan sesuai
                    dengan tugas dan tanggung jawabnya.
                    <br />
                    <br />
                </div>
                <div class="intro2">
                    <br />
                    <br />
                  
                </div>
                <div class="clearku">
                </div>
            </div>
            </div>
            <!-- end content-module-main -->
        </div>
    </div>
    
    <div id="dialog" title="Default dialog">
    </div>
</asp:Content>
